home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Frameworks / Recursive Shell 1.0.1 / Recursive Shell ƒ / DoStuff.c < prev    next >
Text File  |  1996-05-31  |  3KB  |  129 lines

  1. /********************************************************************************/
  2. //
  3. //    DoStuff.c
  4. //
  5. //    Part of a shell program, this is the file that will be changed to make it do
  6. //    what it's suppossed to do.
  7. //
  8. /********************************************************************************/
  9.  
  10.  
  11. #include    "DialogUtil.h"
  12. #include    "DoStuff.h"
  13. #include    "Utility.h"
  14.  
  15.  
  16. //    Global variables
  17.  
  18.  
  19. //    Prototypes
  20.  
  21.  
  22. //    Routines that will be called by the other parts of this program:
  23. //    (Each of these must be present, and their names must be unchanged)
  24. //
  25. //    InitializeStuff
  26. //    DoToEachFile
  27. //    DoToEachFolder
  28. //    DoToSelFolder
  29. //    DeInitializeStuff
  30.  
  31.  
  32. /********************************************************************************/
  33. //
  34. //    InitializeStuff is a routine which gets called before anything else happens.
  35. //    This allows the opportunity to set global variables, read preferences, etc.
  36. //    that will affect how the other parts of this file behave.
  37. //    
  38. //    Expected to return true if initialization succeeded and we should continue
  39. //    processing files.
  40. //
  41. /********************************************************************************/
  42.  
  43. Boolean    InitializeStuff( void )
  44. {
  45. //    Get the name of a text file from the user and create or open it.
  46. //    Store the reference to it in a global variable for later use.
  47.  
  48.     
  49.     return ( true );
  50. }
  51.  
  52.  
  53. /********************************************************************************/
  54. //
  55. //    DoToEachFile is a routine which is called for each file the recursion routine
  56. //    encounters.
  57. //
  58. /********************************************************************************/
  59.  
  60. void    DoToEachFile( FSSpec fileSpec )
  61. {
  62.  
  63. }
  64.  
  65.  
  66. /********************************************************************************/
  67. //
  68. //    DoToEachFolder is a routine which is called for each file the recursion
  69. //    routine encounters.
  70. //
  71. /********************************************************************************/
  72.  
  73. void    DoToEachFolder( FSSpec folderSpec )
  74. {
  75.  
  76. }
  77.  
  78.  
  79. /********************************************************************************/
  80. //
  81. //    If the user dropped a file on to the icon, after all calls to DoToEachFile
  82. //    and DoToEachFolder are completed, DoToSelFile is called with a reference to
  83. //    the file the user dropped.
  84. //
  85. /********************************************************************************/
  86.  
  87. void    DoToSelFile( FSSpec    fileSpec )
  88. {
  89.  
  90. }
  91.  
  92.  
  93. /********************************************************************************/
  94. //
  95. //    If the user selected a folder or dropped one on to the icon, after all calls
  96. //    to DoToEachFile and DoToEachFolder are completed, DoToSelFolder is called with
  97. //    a reference to the folder the user selected or dropped.
  98. //
  99. /********************************************************************************/
  100.  
  101. void    DoToSelFolder( FSSpec folderSpec )
  102. {
  103.  
  104. }
  105.  
  106.  
  107.  
  108. /********************************************************************************/
  109. //
  110. //    DeInitializeStuff is a routine which is called after all the recursive stuff
  111. //    is done.  It allows us to close up any files opened, release memory, etc.
  112. //
  113. /********************************************************************************/
  114.  
  115. void    DeInitializeStuff( void )
  116. {
  117.  
  118. }
  119.  
  120.  
  121. /********************************************************************************/
  122. //
  123. //    Misc. routines to support what this app needs to do go below here
  124. //
  125. /********************************************************************************/
  126.  
  127.  
  128.  
  129.